

// 把一个数组分成指定长度的数组
export function  splitArr(ar, size = 1) {
        let index = 0;
        let res = [];
        while (index < ar.length) {
            res.push(ar.slice(index, (index+size)));
            index += size;
        }
        return res;
    }
 

